package com.app.entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author SmallPlume
 * @title: User
 * @projectName applet
 * @description: TODO
 * @date 2019/10/11 23:21
 */
@Data
@Document(collection = "sys_user")
public class User implements Serializable {
    @Id
    private ObjectId id;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 头像
     */
    private String avatarUrl;
    /**
     * OPEN_ID
     */
    private String openId;
    /**
     * 电话
     */
    private String phone;
    /**
     * 创建时间
     */
    private Date createAt;
    /**
     * 数据状态
     */
    private Integer dataStatus;
}
